package com.tjmc.tiomsresource.service.impl;

import com.tjmc.tiomscore.dao.TranPtnHwEqhMapper;
import com.tjmc.tiomscore.model.TranPtnHwEqh;
import com.tjmc.tiomsresource.parser.CMEqhParser;
import com.tjmc.tiomsresource.service.CMEqhService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.File;
import java.util.List;

/**
 * @author Luc
 * @version 1.0
 * @date 2020-05-20 15:41
 */
@Deprecated
@Service("cmEqhService")
public class CMEqhServiceImpl extends CMSuperServiceImpl<TranPtnHwEqh> implements CMEqhService {

    @Autowired
    private CMEqhParser cmEqhParser;
    @Autowired
    private TranPtnHwEqhMapper tranPtnHwEqhMapper;

    @Override
    public CMEqhParser getParser() {
        return cmEqhParser;
    }

    @Override
    public TranPtnHwEqhMapper getMapper() {
        return tranPtnHwEqhMapper;
    }

    @Override
    public boolean saveTranPtnHwDataToDB(List<File> xmlFiles) {
        return this.saveTranPtnHwDataToDB(xmlFiles, "EQH");
    }
}
